package com.konne.nightmare.FastPublicOpinion.widget;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;

public class RecyclerViewLayoutManager {

    public LinearLayoutManager setLinear(Context context, boolean isDisableSlide){
        return new LinearLayoutManager(context){
            @Override
            public boolean canScrollVertically() {
                if (isDisableSlide){
                    return false;
                }else {
                    return super.canScrollVertically();
                }
            }
        };
    }
}
